home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-06
/
segue.exe
/
NSPLTMO.PRG
< prev
next >
Wrap
Text File
|
1991-10-29
|
1KB
|
45 lines
*.............................................................................
*
* Program Name: NSPLTMO.PRG Copyright: HRF Associates, Inc.
* Date Created: 10/29/11 Language: Clipper
* Time Created: 01:12:13 Author: Bob Fogle
*
*.............................................................................
* Supplemental SEGUE function for setting spooler timeout value in seconds.
* Functionally equivilent to N_SPLTMO function in NETLIB library.
*
FUNCTION NSPLTMO_
* Purpose: To set spooler timeout value in seconds.
* Usage : NSPLTMO_([<expN1>])
* :
* Where : <expN1> = Timout Value (seconds)
* : 0 = no timeout.
* :
PARAMETERS tmout
LOCAL mtmout
PRIVATE rtn :=0
do while .t.
* Check to make sure passed variable types are correct.
if valtype(tmout)<>'N' .AND. tmout<>nil
rtn = -101
exit
endi
* Set up defaults
mtmout = if(valtype(tmout)=='N',tmout,0)
* Get/Set spooler timeout
if pcount()=0 // If no arguments, return current setting.
rtn = PRJBDFG(8) // Get Default Print Job Flags (Flush Capture Timeout Count)
else
mtmout= 18 * mtmount // adjust for seconds
rtn = PRJBDFS(,,,,,,,mtmout) // Set Default Print Job Flags (Flush Capture Timeout Count)
endi
exit
endd
RETURN rtn